﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TuoShouDZ.aspx.cs" Inherits="Web.Pages.YongShui._7.ZhangWuGL.TuoShouDZ" Theme="Default" ValidateRequest="false" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script type="text/javascript">
        function Uploader_OnFileUploadComplete(e) {
            var arr = e.callbackData.split('|');
            var type = arr[0];
            var state = arr[1];
            var specialIdentity = arr[2];
            var msg = arr[3].split('-');
            if (msg[0] == 'True') {
                alert(msg[1]);
            }
            if (state == 'True') {
                gvlist1.PerformCallback();
            }
            else {

            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            托收到账
        </div>
        <div>
            <asp:UpdatePanel ID="updatePanel1" runat="server">
                <ContentTemplate>
                    <div>
                        <table style="height: 43px; width: 300px">
                            <tr>
                                <td>
                                    <dx:ASPxUploadControl ID="UpLoadFile" runat="server" ClientInstanceName="uploader"
                                        ShowTextBox="false" Theme="Aqua" UploadMode="Standard" ShowClearFileSelectionButton="False"
                                        ShowProgressPanel="True" NullText="" OnFileUploadComplete="UpLoadFile_FileUploadComplete"
                                        Width="0px">
                                        <ValidationSettings AllowedFileExtensions=".txt" MaxFileSizeErrorText="文件大小超过允许的最大值" NotAllowedFileExtensionErrorText="只能上传txt文件">
                                        </ValidationSettings>
                                        <BrowseButton Text="导入文件"></BrowseButton>
                                        <ClientSideEvents FileUploadComplete="function(s, e) { Uploader_OnFileUploadComplete(e); }"
                                            TextChanged="function(s, e) { uploader.Upload();}"></ClientSideEvents>
                                    </dx:ASPxUploadControl>
                                </td>
                                <%--  <td>
                                    <dx:ASPxButton ID="btnDaoRuWJ" runat="server" Text="导入文件" OnClick="btnDaoRuWJ_Click">
                                        <ClientSideEvents Click="function(s, e) { 
                                            clDaoRuWJ.Upload();
                                           }" />
                                    </dx:ASPxButton>
                                </td>--%>
                            </tr>
                        </table>
                    </div>
                    <div>
                        <dx:ASPxGridView ID="gvXiangXiXX" ClientInstanceName="gvlist1" runat="server" SettingsBehavior-AllowSort="false" AutoGenerateColumns="False" KeyFieldName="ID" Theme="Aqua1" Width="100%" OnCustomCallback="gvXiangXiXX_CustomCallback">
                            <Columns>
                                <dx:GridViewDataTextColumn FieldName="S_WENJIANM" Caption="文件名">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="N_ZONGJINE" Caption="总金额" Width="80px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="I_ZONGBIS" Caption="总笔数" Width="50px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="N_DAOZHANGJE" Caption="到账金额" Width="80px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="I_DAOZHANGBS" Caption="到账笔数" Width="60px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="N_BENHANGDZJE" Caption="本行到帐金额" Width="85px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="I_BENHANGDZBS" Caption="本行到帐笔数" Width="85px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="N_KUAHANGDZJE" Caption="跨行到帐金额" Width="85px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="I_KUAHANGDZBS" Caption="跨行到帐笔数" Width="85px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="N_TUIPIAOJE" Caption="退票金额" Width="80px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="I_TUIPIAOBS" Caption="退票笔数" Width="60px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="N_BENHANGTPJE" Caption="本行退票金额" Width="85px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="I_BENHANGTPBS" Caption="本行退票笔数" Width="85px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="N_KUAHANGTPJE" Caption="跨行退票金额" Width="85px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="I_KUAHANGTPBS" Caption="跨行退票笔数" Width="85px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="D_DAORURQ" Caption="日期" HeaderStyle-HorizontalAlign="Center" CellStyle-HorizontalAlign="Center">
                                    <PropertiesTextEdit DisplayFormatString="{0:d}">
                                    </PropertiesTextEdit>
                                </dx:GridViewDataTextColumn>
                                
                            </Columns>
                            <Settings VerticalScrollableHeight="460" VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" />
                        </dx:ASPxGridView>
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
        <div>
            <dx:ASPxLoadingPanel ID="LoadingPanel" runat="server" ClientInstanceName="cnLoadingPanel" Text="正在导入回盘文件，请稍后...">
            </dx:ASPxLoadingPanel>
        </div>
        <%-- <div style="display: none;">
            <dx:ASPxButton ID="btnDaoRuWJFact" runat="server" Text="button" OnClick="btnDaoRuWJFact_Click" >
                        <ClientSideEvents Click="function(s, e) { 
                            cnLoadingPanel.Show();
                            }" />
            </dx:ASPxButton>
            <asp:HiddenField ID="confirmValue" runat="server" />
        </div>--%>
    </form>
</body>
</html>
